package com.mao;

import redis.clients.jedis.Jedis;

/**
 * Author: Administrator
 * Date: 2021/5/18 21:06
 * Description:
 */
public class TestPing {
    public static void main(String[] args) {
        // 1、new Jedis 对象即可
        Jedis jedis = new Jedis("60.205.206.201", 6379);
        jedis.auth("lloam");
        // jedis 所有的命令就是我们之前学习的所有指令
        System.out.println(jedis.get("k1"));
        System.out.println(jedis.ping());
    }
}
